@import tool.ReportPojo.ReportData
@import tool.ReportPojo.ReportInfo
@import views.user.report.IndexTool._
@(resultPath: String, index: String, path: String, info: ReportInfo)(implicit data: ReportData)

<div id="page" class="newPage">
	@user.report.pdf.pageHeader(path, data, info)
	<br />
	<h2 class="titleLevel1" id="summary" ><span>@(index)、所有Treat的结果汇总</span></h2>

	<h3 id="sigMet" class="myMain titleLevel2"><span id="差异代谢物汇总">1　差异代谢物汇总</span></h3>

	@if(data.summaryData.hasSigMet) {
		@user.report.diffCs(resultPath)
		<div align="center">
			<a id="example2" data-fancybox="gallery" href="@(resultPath)/Treatment/Sig_Met_Summary/Sig_Met_Venn_Plot.png">
				<img class="wid2" src="@(resultPath)/Treatment/Sig_Met_Summary/Sig_Met_Venn_Plot.png">
			</a>
		</div>
		<p class="paragraph">
			韦恩图中，不同颜色椭圆代表不同的Treat。椭圆的重叠部分代表对应Treat之间的交集。每个区域内的数字代表对应集合内差异代谢物的数目。
		</p>
	} else {
		@user.report.html.noResult()
	}

</div>

	@if(data.configDatas(0).isSelfCor) {
		<div id="page" class="newPage">
			@user.report.pdf.pageHeader(path, data, info)
			<h3 class="titleLevel2" id="显著自相关代谢物汇总">
				<span id="selfCor" class="myMain">
					@getCsSelfCorIndex(0)　显著自相关代谢物汇总
				</span>
			</h3>

			@if(data.summaryData.hasSelfCor) {
				<p class="paragraph">
					根据筛选标准，对所有Treat下获取的代谢物自相关情况进行汇总统计:<br>
					各个Treat获取的显著自相关代谢物见表格
					<a href="@(resultPath)/Treatment/Correlation_Summary/Intra_Correlation_Venn_Data.csv">
						Intra_Correlation_Venn_Data.csv</a>
					<a href="@(resultPath)/Treatment/Correlation_Summary" target="_blank"><span class="fa fa-folder-open"></span></a>
					<br>
					各个Treat获取的显著自相关代谢物韦恩图见下图
				</p>
				<p class="name_table">显著自相关代谢物韦恩图</p>
				<div align="center">
					<a id="example2" data-fancybox="gallery" href="@(resultPath)/Treatment/Correlation_Summary/Intra_Correlation_Venn_Plot.png">
						<img class="wid2" src="@(resultPath)/Treatment/Correlation_Summary/Intra_Correlation_Venn_Plot.png">
					</a>
				</div>
			} else {
				@user.report.html.noResult()
			}

		</div>
	}

	@if(data.configDatas(0).isCor) {
		<div id="page" class="newPage">
			@user.report.pdf.pageHeader(path, data, info)
			<h3 id="" class="titleLevel2">
				<span id="uploadCor" class="myMain">
					@getCsUploadCorIndex(0) 显著相关性对子汇总
				</span>
			</h3>
			@user.report.csDescribe(resultPath)

			@for(j <- data.summaryData.uploads.indices) {
				@if(j > 0) {
					<div class="newPage">
					@user.report.pdf.pageHeader(path, data, info)
					</div>
				}
				<h4 class="titleLevel3">3.@(j + 1) @(data.summaryData.uploads(j).dirName)文件</h4>
				@if(data.summaryData.uploads(j).exist) {
					<p class="paragraph">
						根据筛选标准，我们对所有Treat下获取的代谢物与上传数据的相关对子情况进行了汇总统计：<br>
						各个Treat获取的显著相关对子见表格
						<a href="@(resultPath)/Treatment/Correlation_Summary/@(data.summaryData.uploads(j).dirName)/Inter_Correlation_Venn_Data.csv">
							Inter_Correlation_Venn_Data.csv</a>
						<a href="@(resultPath)/Treatment/Correlation_Summary/@(data.summaryData.uploads(j).dirName)/" target="_blank"><span class="fa fa-folder-open"></span></a>
						<br>
						各个Treat获取的显著相关对子的韦恩图见下图
					</p>
					<p class="name_table">显著相关对子韦恩图</p>
					<div align="center">
						<a id="example2" data-fancybox="gallery" href="@(resultPath)/Treatment/Correlation_Summary/@(data.summaryData.uploads(j).dirName)/Inter_Correlation_Venn_Plot.png">
							<img class="wid2" src="@(resultPath)/Treatment/Correlation_Summary/@(data.summaryData.uploads(j).dirName)/Inter_Correlation_Venn_Plot.png">
						</a>
					</div>
				} else {
					@user.report.html.noResult()
				}
			}
		</div>
	}

	@if(data.configDatas(0).isParCor) {
		<div id="page" class="newPage">
			@user.report.pdf.pageHeader(path, data, info)
			<h3 id="" class="titleLevel2">
				<span id="parCor" class="myMain">
					@getCsParCorIndex(0) 显著偏相关对子汇总
				</span>
			</h3>
			@user.report.csDescribe(resultPath)

			@for(j <- data.summaryData.uploads.indices) {
				@if(j > 0) {
					<div class="newPage">
					@user.report.pdf.pageHeader(path, data, info)
					</div>
				}
				<h4 class="titleLevel3">4.@(j + 1) @(data.summaryData.uploads(j).dirName)文件</h4>
				@if(data.summaryData.uploads(j).parExist) {
					<p class="paragraph">
						根据筛选标准，我们对控制上传混杂变量后的所有Treat下获取的代谢物与上传数据的相关对子情况进行了汇总统计：<br>
						各个Treat获取的显著偏相关对子见表格
						<a href="@(resultPath)/Treatment/Correlation_Summary/@(data.summaryData.uploads(j).dirName)/Inter_Partial_Correlation_Venn_Data.csv">
							Inter_Partial_Correlation_Venn_Data.csv</a>
						<a href="@(resultPath)/Treatment/Correlation_Summary/@(data.summaryData.uploads(j).dirName)/" target="_blank"><span class="fa fa-folder-open"></span></a>
						<br>
						各个Treat获取的显著偏相关对子的韦恩图见下图
					</p>
					<p class="name_table">显著偏相关对子韦恩图</p>
					<div align="center">
						<a id="example2" data-fancybox="gallery" href="@(resultPath)/Treatment/Correlation_Summary/@(data.summaryData.uploads(j).dirName)/Inter_Partial_Correlation_Venn_Plot.png">
							<img class="wid2" src="@(resultPath)/Treatment/Correlation_Summary/@(data.summaryData.uploads(j).dirName)/Inter_Partial_Correlation_Venn_Plot.png">
						</a>
					</div>
				} else {
					@user.report.html.noResult()
				}
			}
		</div>
	}



